<%@ taglib prefix="c" uri="/WEB-INF/tlds/hdiv-c.tld"%>
<%@ taglib prefix="form" uri="/WEB-INF/tlds/hdiv-spring-form-3_0_4.tld"%>
<%@ taglib uri="/WEB-INF/tlds/hdiv-spring.tld" prefix="spring"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<c:url value="mostrarHWF1001.html" var="equivalenciadeagencia"/>

  <script>
        function habilitaDeshabilitaChk()
            {   estadoTotal=false;  
                document.forms[0].accion.disabled=false;
            } 
        function validar()
        {
        moveForward('guarda');
        /*
        if(isNaN(document.forms[0].codEqui.value)){
            alert('Ingrese solo digitos por favor');
            document.forms[0].codEqui.focus();
            }
        else{
            moveForward('guarda');
            }
        */
        }
  </script>
<form:form modelAttribute="form" action="${equivalenciadeagencia}">
<form:hidden path="accion"/>
<form:hidden path = "control"/>
<form:hidden path = "existeCliDest"/>
<form:hidden path = "cliente"/>
<form:hidden path = "sucursal"/>
<form:hidden path = "tipo_destino"/>
<form:hidden path = "codClienteBanco"/>
<form:hidden path = "desClienteBanco"/>
<form:hidden path = "codPunto"/>
<form:hidden path = "chk"/>
<table id="fullheighttable" width="775" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td align="left" valign="top" class="fondo_contenido padtop16left21">
      <table width="780" border="0" align="center" cellpadding="0" cellspacing="0" >
      <tr>
        <td height="22" align="left" valign="top" class="verdana11bazul">
            <ul class="navlist2">
            <li>
              EQUIVALENCIA DE AGENCIAS
            </li>
            </ul></td>
        </tr>
      <tr>
        <td align="left" valign="top" class="borde_totalblanco"><table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="105" height="23" align="left" valign="top" class="verdana10bazul">Banco</td>
            <td height="23" align="left" valign="top" class="verdana10negro">
                <c:out value="${sessionScope.nombreCliente}"/>
               </td>
          </tr>
          <c:if test="${form.existeCliDest}">
          <tr>
            <td width="105" height="23" align="left" valign="top" class="verdana10bazul">Cliente Destino</td>
            <td height="23" align="left" valign="top" class="verdana10negro">
                <c:out value="${form.desClienteBanco}"/>                
               </td>
          </tr>
          </c:if>
          <!-- Muestra el grupo de clientes en caso de coorporación      -->
          <c:if test="${not empty listaClientes}">
            <tr>
                <td height="23" align="left" valign="top" class="verdana10bazul">
                    Grupo Cliente
                </td>
                <td colspan="1">
                    <form:select cssStyle="height: 20px; width: 180px; font-family: Arial; font-size: 8pt"
                                path="cli_grupo">
                    <form:option value=""></form:option>
                    <form:options items="${listaClientes}"
                                itemValue="codCliente"
                                itemLabel="nombre"/>
                    </form:select>
                </td>
            </tr>
          </c:if>
        </table>
        </td>
      </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td align="left" valign="top" class="padtop16left21">
        <table>
            <tr>
             <td>
              <input type="button" class="boton" value="Cancela" onclick="moveForward('cancela')"/>              
             </td>
             <td>
              <input type="button" class="boton" value="Guardar" onclick="javascript:validar();"/>              
             </td>
            </tr>
        </table>
    </td>
  </tr>
  <tr>
    <td align="left" valign="top" class="padtop16left21">
        <table>
        <tr>
            <td width="200" height="23" align="left" valign="top" class="verdana10bazul">C&oacute;digo</td>
            <td height="23" align="left" valign="top" class="verdana10negro"><c:out value="${form.chk}"/></td>
        </tr>
        <tr>
            <td width="200" height="23" align="left" valign="top" class="verdana10bazul">Descripci&oacute;n HTB</td>
            <td height="23" align="left" valign="top" class="verdana10negro"><c:out value="${form.desPunto}"/></td>
        </tr>
        <tr>
            <td width="200" height="23" align="left" valign="top" class="verdana10bazul">C&oacute;digo de Equivalencia</td>
            <td align="left" valign="bottom" class="padright10"><div class="fondo_txtbox90">
                <form:input maxlength="7" size="12" path="codEqui"/></div></td>
        </tr>
        <tr>
            <td width="200" height="23" align="left" valign="top" class="verdana10bazul">Descripci&oacute;n de Equivalencia</td>
            <td align="center" valign="bottom" class="padright10"><div class="fondo_txtbox257">
                <form:input path="desEqui" maxlength="45" size="50" onkeyup="javascript:var y=verificaDireccional(event);if(y=='true'){this.value=value.toUpperCase();}"/></div></td>
        </tr>
        </table>
    </td>
  </tr>
</table>
</form:form>
<script>
    document.forms[0].codEqui.focus();
</script> 
